import request from '@/utils/request'

const bastPath = '/eqptApi'

export interface PageListType {
  type?: any;
  pageNum?: number;
  pageSize?: number;
  eqptCode?: string;
  regionList?: [];
  terminalList?: [];
}

export const chargePageList: (data: PageListType) => Promise<[]> = (data: PageListType) => {
  return request({
    url: bastPath + '/charging/find/page',
    method: 'post',
    data: {
      pageNum: data.pageNum,
      pageSize: data.pageSize,
      condition: {
        eqptCode: data.eqptCode,
        terminalList: data.terminalList,
        regionList: data.regionList
      }
    }
  })
}
